import request from '@/utils/request'

/**
 * 分页查询操作日志
 * @param {Object} params 查询参数
 * @returns {Promise}
 */
export function pageOperationLog(params) {
  return request({
    url: '/operationLog/page',
    method: 'get',
    params
  })
}

/**
 * 清理指定天数之前的日志
 * @param {Number} days 天数
 * @returns {Promise}
 */
export function cleanOperationLog(days) {
  return request({
    url: '/operationLog/clean',
    method: 'delete',
    params: { days }
  })
} 